package com.chhlz.module.base.vo;

import com.chhlz.module.base.model.Dish;
import com.chhlz.module.base.model.DishCategory;

public class DishVO {
	private String dishId;
	private String dishName;
	private String currentPrice;
	private String description;
	private int dcId;
	private String dcName;
	private String dcDescription;
	public String getDishId() {
		return dishId;
	}
	public void setDishId(String dishId) {
		this.dishId = dishId;
	}
	public String getDishName() {
		return dishName;
	}
	public void setDishName(String dishName) {
		this.dishName = dishName;
	}
	public String getCurrentPrice() {
		return currentPrice;
	}
	public void setCurrentPrice(String currentPrice) {
		this.currentPrice = currentPrice;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getDcId() {
		return dcId;
	}
	public void setDcId(int dcId) {
		this.dcId = dcId;
	}
	public String getDcName() {
		return dcName;
	}
	public void setDcName(String dcName) {
		this.dcName = dcName;
	}
	public String getDcDescription() {
		return dcDescription;
	}
	public void setDcDescription(String dcDescription) {
		this.dcDescription = dcDescription;
	}
	public Dish toDish(){
		Dish dish = new Dish();
		dish.setDishId(Integer.valueOf(dishId));
		dish.setDishName(dishName);
		dish.setCurrentPrice(currentPrice);
		dish.setDescription(description);
		DishCategory category = new DishCategory();
		category.setDcId(dcId);
		category.setDcName(dcName);
		category.setDescription(dcDescription);
		dish.setDishCategory(category);
		return dish;
	}
	@Override
	public String toString() {
		return "DishVO [dishId=" + dishId + ", dishName=" + dishName
				+ ", currentPrice=" + currentPrice + ", description="
				+ description + ", dcId=" + dcId + ", dcName=" + dcName
				+ ", dcDescription=" + dcDescription + "]";
	}
}
